package com.xy.lang.domain;

/**
 *
 */
public class LongHolder extends Holder<Long> {

    public LongHolder() {
        super();
    }

    public LongHolder(Long value) {
        super(value);
    }

    public long increment(long delta) {
        if(!isPresent()) {
            this.value = 0L;
        }
        this.value += delta;
        return this.value;
    }

}
